package com.liveneo.adapter.mobile.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.liveneo.adapter.base.entity.PrpmVideoConnection;
import com.liveneo.adapter.base.mapper.PrpmVideoConnectionMapper;
import com.liveneo.adapter.mobile.service.VideoConnectService;

@Service
public class VideoConnectServiceImpl implements VideoConnectService {
    @Autowired
    private PrpmVideoConnectionMapper prpmVideoConnectMapper;

    @Override
    public PrpmVideoConnection getVideoConnectByphoneNo(String phoneNo) throws Exception {
        // TODO Auto-generated method stub
        return prpmVideoConnectMapper.selectByPhoneNo(phoneNo);
    }

    @Override
    public int updateByUuid(PrpmVideoConnection prpmVideoConnection) throws Exception {
        // TODO Auto-generated method stub
        return prpmVideoConnectMapper.updateByUuid(prpmVideoConnection);
    }

    @Override
    public int insert(PrpmVideoConnection prpmVideoConnection) throws Exception {
        // TODO Auto-generated method stub
        return prpmVideoConnectMapper.insert(prpmVideoConnection);
    }
}
